<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<script type="text/javascript">
/*    var anem=80;
    function gg(anem) {
  
    if(anem>80){
    	document.write("优秀")
    }else if(anem>60){
        document.write("及格")
    }else{
    	document.write("不及格")
    }
  };
  gg(anem);*/

   /*var arr=["a","b","h","e","f","g"]
   var cc=["c","d"]
   arr[2]=cc;
   
   time=arr[1];
   arr[1]=cc[1];
   cc[1]=time;
   document.write(arr);
*/
/*
arr=[10,10,10,10,10]
temg=0;
for (var i=0; i<arr.length;i++){
	temg=temg+arr[i]
};
document.write(temg);*/

/*arr=[100,10,10,10,20]
temg=0;
for (var i=1; i<arr.length; i++) {
	temg=temg+arr[i];
	y=arr[0]-temg;	
};
document.write(y);*/

/*str="abcdefg";
temg=[];
for(var i=str.length-1;i>=0;i--){
	temg=temg+str[i];
}
document.write(temg);*/

/*var num=5;
function name(){
	num--;
	time = document.getElementById("time");
	time.innerHTML=num;	
}
setInterval(name,1000);*/


/*
var num=10;
function name(){
	num--;
	time=document.getElementById("time");
	time.innerHTML=num;
}
setInterval(name,1000);
*/


var name=50;
 function num(name){
 	if(name>80){
 		document.write("优秀")
 	}else if(name>60){
 		document.write("烂")
 	}else{
 		document.write("不及格")
 	}
 }
 num(name);






	</script>
</head>
<body>
<!--   <p id="time"></p> -->
	
</body>
</html>